package com.jinghua.treatment.mapper;

import com.jinghua.treatment.entity.SysWechatAccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysWechatAccountMapper {

    int insert(SysWechatAccount record);

    List<SysWechatAccount> selectAll();

    List<SysWechatAccount>  selectByExample(@Param("sysWechatAccount") SysWechatAccount sysWechatAccount);

    /**
     * 根据患者id获取患者微信信息
     * @param patientId     患者编号
     * @return              微信信息
     */
    SysWechatAccount selectByPatient(@Param("patientId") Integer patientId);
}